
export default {
    bind(el, binding, vnode, oldnode) {
        el.datavalue = binding.value
    },
    inserted() { },
    //update的指令是其对应的vue实例中data中存在的值改变了就会触发
    update(el, binding, vnode, oldnode) {
        if (el.datavalue !== binding.value) {
            el.datavalue = binding.value
            console.log(11111);
        }
    },

}